16. Task Dependencies and Ordering

Task Dependencies and Ordering

INSTRUCTOR NOTE:

In this video I accidentally use mustRunAfter and shouldRunAfter interchangeably, but there's an important difference. In some cases shouldRunAfter can be ignored, such as when it would introduce a cyclical dependency, and when executing a parallel build. For more info, check out this section of the user guide.

The code for this demo is in the 1.08-Demo-TaskDependencies folder.

You can find the Gradle documentation on task dependencies and ordering here.